package com.ympc.pojo;

import java.util.Date;

/**
 * 作业实体类
 */
public class Assignment {
    private Integer id;
    private Integer teacherId; // 教师ID
    private Integer classId; // 班级ID
    private String title; // 作业标题
    private String content; // 作业内容
    private Date publishTime; // 发布时间
    private Date deadline; // 截止时间
    private String status; // 状态：published(已发布), grading(批改中), finished(已结束)

    public Assignment() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Assignment{" +
                "id=" + id +
                ", teacherId=" + teacherId +
                ", classId=" + classId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publishTime=" + publishTime +
                ", deadline=" + deadline +
                ", status='" + status + '\'' +
                '}';
    }
}

